package com.cloudpolice.equipment.service;

import com.cloudpolice.equipment.model.EquipmentParamDefaultModel;
import com.cloudpolice.equipment.model.EquipmentParamModel;

import java.util.List;

/**
 * @author ：梁昊，后端工程师：卢春龙，前端工程师：孙耀
 * @create 2020-04-20 19:54
 * @function
 * @editLog
 */
public interface EquipmentParamService {
    /**
     * 根据sn号删除设备参数
     *
     * @param sn
     * @return 结果
     */
    int deleteEquipmentParamBySn(String sn);

    /**
     * 修改设备参数
     *
     * @param equipmentParamModel com.cloudpolice.equipment.model.InPutParam.EquipmentParamModel
     * @return 结果
     */
    int updateEquipmentParam(EquipmentParamModel equipmentParamModel);

    /**
     * 通用查询设备参数
     *
     * @param equipmentParamModel 通用查询设备参数
     * @return 明细
     */
    List<EquipmentParamModel> selectEquipmentParamAll(EquipmentParamModel equipmentParamModel);

    /**
     * 插入设备默认参数
     *
     * @param equipmentParamModel com.cloudpolice.equipment.model.InPutParam.EquipmentParamModel
     * @return 结果
     */
    int insertEquipmentParamDefault(EquipmentParamModel equipmentParamModel);

    /**
     * 插入设备默认参数
     *
     * @param sn com.cloudpolice.equipment.model.InPutParam.EquipmentParamModel
     * @return 结果
     */
    int insertEquipmentParamDefaultBeforeCheck(String sn);

    /**
     * 获取设备默认参数
     *
     * @return 结果集
     */
    List<EquipmentParamDefaultModel> getEquipmentParamDefault();

}

